<template>
    <el-form-item label="含税金额">
        <span v-if="price">{{price}}</span>
    </el-form-item>
</template>
<script>
export default {
    props: {
        data: Object,
    },
    computed: {
        price() {
            const rate = this.data.rate;
            const taxExcluded = this.data.taxExcluded;
            return rate !== 0 && rate != null ? taxExcluded / 100 + taxExcluded * rate / 10000 : taxExcluded / 100
        }
    },
}
</script>
